package com.fxd.ui;

import com.fxd.factory.beanFactory;
import com.fxd.service.IAccountService;
import com.fxd.service.impl.AccountServiceImpl;

/**
 * @auther fuxudong
 * @date 2021/1/12 - 16:52
 */
public class Client {
    public static void main(String[] args) {
        //IAccountService as = new AccountServiceImpl();
        for (int i = 0; i < 5; i++) {
            IAccountService as = (IAccountService) beanFactory.getBean("accountService");
            System.out.println(as);
            as.saveAccount();
        }

    }
}
